<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/1/26 15:58
 * Remark:
 */

namespace App\Models\Staff;

use App\Consts\TableConsts\TableConsts;
use App\Models\BaseModel;

class StaffDingTalkModel extends BaseModel
{
    protected $table = TableConsts::CY_STAFF_DING_TALK_TABLE_NAME;

    protected $primaryKey = TableConsts::CY_STAFF_DING_TALK_TABLE_PRIMARY_KEY;

    public $timestamps = false;
    /**
     * 新增钉钉用户关联
     * @param $staffDingTalkData
     * @return bool
     */
    public function addStaffDingTalk($staffDingTalkData): bool
    {
        return $this->save($staffDingTalkData);
    }
}